package com.breakfast.fun.ui.user.coupon;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.user.coupon.Coupon;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by yukai on 2016/11/9.
 */

public interface CouponContract {
    interface Model extends BaseModel {
        Observable<Coupon> getCouponModel(@FieldMap Map<String, String> map);

        Observable<Coupon> getCouponTimeOutModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showCoupon(Coupon coupon);

        void loadCoupon(Coupon coupon);

        void stopRefresh();
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void getCoupon(int begin, boolean isLoadMore);

        public abstract void getCouponTimeOut(int begin, boolean isLoadMore);
    }


}
